<template>
	<view>
		<uni-nav-bar class="nav" status-bar background-color="" color="#fff" :border="false" left-icon="back"
			title="关注公众号" @clickLeft="goback"></uni-nav-bar>
		<view class="beijingtu">
			<image class="beijingimg" :src="imgurl+'/bcg1.png'" mode=""></image>
			<view class="abs">
				<view class="img">
					<image src="/static/toux.png" mode=""></image>
				</view>
				<view class="t1">
					伊可库公众号
				</view>
				<view class="t2">
					了解更多伊可库资料详情， 
					<p>请长按识别关注公众号，获取最新消息</p>
				</view>
				<view class="img1">
					<image show-menu-by-longpress :src="imgInfo.gzhCode" mode=""></image>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import {
		getimg
	} from '@/common/http.api.js';
	export default {
		data() {
			return {
				imgurl:getApp().globalData.WEBIMG,
				imgInfo:{}
			};
		},
		onLoad() {
			getimg({}).then(res=>{
				this.imgInfo = res.data
			})
		},
		methods: {
			goback() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.nav {
		position: fixed;
		top: 0%;
		z-index: 99;
		width: 100%;
	}
	.beijingtu {
		width: 100%;
		height: 100%;
		z-index: 1;
		position: relative;
		.beijingimg {
			position: fixed;
			width: 100%;
			height: 100%;
		}
	}
	.abs{
		position: absolute;
		top: 416rpx;
		left: 60rpx;
		width: 630rpx;
		height: 880rpx;
		background: #FFFFFF;
		border-radius: 40rpx 40rpx 40rpx 40rpx;
		.img{
			width: 160rpx;
			height: 160rpx;
			position: absolute;
			top: -10%;
			left:50%;
			transform: translateX(-50%);
			border: 12rpx solid #fff;
			border-radius: 50%;
			image{
				width: 160rpx;
				height: 160rpx;
				border-radius: 50%;
			}
		}
		.t1{
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #1D2325;
			margin-top: 128rpx;
			text-align: center;
		}
		.t2{
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #979797;
			text-align: center;
			margin-top: 20rpx;
		}
		.img1{
			width: 400rpx;
			height: 400rpx;
			border-radius: 20rpx;
			border: 2rpx solid #1D2325;
			margin: 30rpx auto;
			display: flex;
			justify-content: center;
			align-items: center;
			image{
				width: 380rpx;
				height: 380rpx;
				border-radius: 20rpx;
			}
		}
	}


</style>